package cn.stacey.day02;

/**
 * 计算一个整数的双阶乘
 * 6 = 6 * 4 * 2
 * 5 = 5 * 3 * 1
 * 7 = 7 * 5 * 3 * 1;
 * 8 = 8 * 6 * 4 * 2;
 * 
 * @author hchaojie
 *
 */
public class DemoFactorial {
	public static void main(String[] args) {
		int n = 8;
		
		long result = 1;
		
		for (int i = n; i > 0; i -= 2) {
			result *= i;
		}
		
		System.out.println(result);
		
		for (int count = 60; count > 0; count--) {
			System.out.println("count:" + count);
		}
	}
}
